from django.db import models

class Member(models.Model):
    name=models.CharField(max_length=10)
    password=models.CharField(max_length=20)
    email=models.EmailField()
    register_time=models.DateTimeField(auto_now_add=True)
    last_login_time=models.DateTimeField(auto_now_add=True)
    head_img=models.ImageField(upload_to='./img')
    def __unicode__(self):
        return self.name
